<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="../jquery-3.3.1.min.js"></script>
    <style>
        .box {
            width: 400px;
            height: 300px;
            margin: 0 auto;
        }
        
        #left {
            width: 150px;
            height: 300px;
            float: left;
        }
        
        #right {
            width: 150px;
            height: 300px;
            float: right;
        }
        
        #opt {
            margin-top: 100px;
            width: 100px;
            height: 200px;
            float: left;
        }
        
        select {
            width: 100px;
            height: 200px;
        }
    </style>
</head>

<body>
    <div class="box">
        <div id="left">
            <p>可选项</p>
            <select multiple="multiple">
 	          <option>添加</option>
 	          <option>移动</option>
 	          <option>修改</option>
 	          <option>查询</option>
 	          <option>打印</option>
 	          <option>删除</option>
 	        </select>
        </div>
        <div id="opt">
            <input id="toRight" type="button" value=">"><br>
            <input id="toLeft" type="button" value="<"><br>
            <input id="toAllRight" type="button" value=">>"><br>
            <input id="toAllLeft" type="button" value="<<"><br>
        </div>
        <div id="right">
            <p>已选项</p>
            <select multiple="multiple"></select>
        </div>
    </div>
    <script>
        $("#toRight").click(function() {
            $("#right select").append($("#left>select>option:selected"));
        })
        $("#toLeft").click(function() {
            $("#left select").append($("#right select option:selected"));
        })
        $("#toAllRight").click(function() {
            $("#right select").append($("#left>select>option"));
        })
        $("#toAllLeft").click(function() {
            $("#left select").append($("#right select option"));
        })
    </script>

</body>

</html>